package com.his.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the HIS_PURCHASE database table.
 * 
 */
@Entity
@Table(name="HIS_PURCHASE")
@NamedQuery(name="HisPurchase.findAll", query="SELECT h FROM HisPurchase h")
public class HisPurchase implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="CG_NO")
	private long cgNo;

	@Column(name="CG_BATCHNUMBER")
	private String cgBatchnumber;

	@Column(name="CG_IFSTORAGE")
	private String cgIfstorage;

	@Column(name="CG_NUMBER")
	private BigDecimal cgNumber;

	@Temporal(TemporalType.DATE)
	@Column(name="CG_ORDERDATE")
	private Date cgOrderdate;

	@Column(name="CG_PRICE")
	private BigDecimal cgPrice;

	@Column(name="CG_REMARKS")
	private String cgRemarks;

	@Column(name="CG_STATE")
	private String cgState;

	@Column(name="CG_TOTALPRICE")
	private String cgTotalprice;

	@Column(name="CG_UNIT")
	private String cgUnit;

	@Column(name="CGXQ_NO")
	private BigDecimal cgxqNo;

	@Column(name="CP_NAME")
	private String cpName;

	@Column(name="GYS_NO")
	private BigDecimal gysNo;

	@Column(name="YG_NO")
	private BigDecimal ygNo;

	public HisPurchase() {
	}

	public long getCgNo() {
		return this.cgNo;
	}

	public void setCgNo(long cgNo) {
		this.cgNo = cgNo;
	}

	public String getCgBatchnumber() {
		return this.cgBatchnumber;
	}

	public void setCgBatchnumber(String cgBatchnumber) {
		this.cgBatchnumber = cgBatchnumber;
	}

	public String getCgIfstorage() {
		return this.cgIfstorage;
	}

	public void setCgIfstorage(String cgIfstorage) {
		this.cgIfstorage = cgIfstorage;
	}

	public BigDecimal getCgNumber() {
		return this.cgNumber;
	}

	public void setCgNumber(BigDecimal cgNumber) {
		this.cgNumber = cgNumber;
	}

	public Date getCgOrderdate() {
		return this.cgOrderdate;
	}

	public void setCgOrderdate(Date cgOrderdate) {
		this.cgOrderdate = cgOrderdate;
	}

	public BigDecimal getCgPrice() {
		return this.cgPrice;
	}

	public void setCgPrice(BigDecimal cgPrice) {
		this.cgPrice = cgPrice;
	}

	public String getCgRemarks() {
		return this.cgRemarks;
	}

	public void setCgRemarks(String cgRemarks) {
		this.cgRemarks = cgRemarks;
	}

	public String getCgState() {
		return this.cgState;
	}

	public void setCgState(String cgState) {
		this.cgState = cgState;
	}

	public String getCgTotalprice() {
		return this.cgTotalprice;
	}

	public void setCgTotalprice(String cgTotalprice) {
		this.cgTotalprice = cgTotalprice;
	}

	public String getCgUnit() {
		return this.cgUnit;
	}

	public void setCgUnit(String cgUnit) {
		this.cgUnit = cgUnit;
	}

	public BigDecimal getCgxqNo() {
		return this.cgxqNo;
	}

	public void setCgxqNo(BigDecimal cgxqNo) {
		this.cgxqNo = cgxqNo;
	}

	public String getCpName() {
		return this.cpName;
	}

	public void setCpName(String cpName) {
		this.cpName = cpName;
	}

	public BigDecimal getGysNo() {
		return this.gysNo;
	}

	public void setGysNo(BigDecimal gysNo) {
		this.gysNo = gysNo;
	}

	public BigDecimal getYgNo() {
		return this.ygNo;
	}

	public void setYgNo(BigDecimal ygNo) {
		this.ygNo = ygNo;
	}

}